package com.zmn.oms.services.interfaces.channelprepay;

import com.zmn.oms.model.entity.channelprepay.OrderChannelPrepay;

import java.util.List;

/**
 * 类描述：
 *
 * @author wangxiaokun
 * @since 2022/04/27 10:16
 */
public interface OrderChannelPrepayService {

    /**
     * 根据工单号查询预付款明细
     * @param orderId
     * @param workId
     * @return
     */
    List<OrderChannelPrepay> listOrderChannelPrepayByOrderIdAndWorkId(Long orderId, Long workId);

    /**
     * 根据订单id集合查询
     * @param workIdList
     * @return
     */
    List<OrderChannelPrepay> listOrderChannelPrepayByWorkIdList(List<Long> workIdList);

    /**
     * 批量插入
     * @param channelPrepayList
     * @return
     */
    int insertAll(List<OrderChannelPrepay> channelPrepayList);

    /**
     * 删除
     * @param orderId
     * @return
     */
    int deleteByOrderId(Long orderId);
}
